const getters = {
  tag: (state) => state.tags.tag,
  website: (state) => state.common.website,
  language: (state) => state.common.language,
  setting: (state) => state.common.setting,
  userInfo: (state) => state.user.userInfo,
  themeName: (state) => state.common.themeName,
  isMacOs: (state, getters) => getters.themeName === 'mac-os',
  isRefresh: (state) => state.common.isRefresh,
  isSearch: (state) => state.common.isSearch,
  isHorizontal: (state) => state.common.setting.sidebar === 'horizontal',
  isCollapse: (state) => state.common.isCollapse,
  isLock: (state) => state.common.isLock,
  isFullScren: (state) => state.common.isFullScren,
  isMenu: (state) => state.common.isMenu,
  lockPasswd: (state) => state.common.lockPasswd,
  menuData: (state) => state.common.menuData,
  tagList: (state) => state.tags.tagList,
  tagsKeep: (state, getters) => {
    return getters.tagList
      .filter((ele) => {
        return ele.meta.keepAlive
      })
      .map((ele) => ele.value)
  },
  tagWel: (state) => state.tags.tagWel,
  access_token: (state) => state.user.access_token,
  refresh_token: (state) => state.user.refresh_token,
  roles: (state) => state.user.roles,
  permissions: (state) => state.user.permissions,
  menuId: (state) => state.user.menuId,
  menu: (state) => state.user.menu,
  menuAll: (state) => state.user.menuAll,
  logsList: (state) => state.logs.logsList,
  logsLen: (state) => state.logs.logsList.length || 0,
  logsFlag: (state, getters) => getters.logsLen === 0,
  orderCount: (state) => state.user.orderCount,
  complainCount: (state) => state.user.complainCount,
  taskObj: (state) => state.user.taskObj,
  step1: (state) => state.user.step1,
  step2: (state) => state.user.step2,
  promoterDrawer: (state) => state.user.promoterDrawer,
  approverDrawer: (state) => state.user.approverDrawer,
  approverConfigData: (state) => state.user.approverConfigData,
  starterConfigData: (state) => state.user.starterConfigData,
  copyerDrawer: (state) => state.user.copyerDrawer,
  copyerConfig1: (state) => state.user.copyerConfig1,
  conditionDrawer: (state) => state.user.conditionDrawer,
  conditionsConfig1: (state) => state.user.conditionsConfig1,
  isLockFlag:state => state.user.isLockFlag
}
export default getters
